gtk4.git
11 years agotests/gtk: Add GdkX11GLContext to the whitelist
Emmanuele Bassi [Wed, 22 Oct 2014 20:20:52 +0000 (21:20 +0100)]
tests/gtk: Add GdkX11GLContext to the whitelist

We cannot create them directly anyway.

11 years agotests/a11y/about: Fix expected text
Emmanuele Bassi [Wed, 22 Oct 2014 20:17:37 +0000 (21:17 +0100)]
tests/a11y/about: Fix expected text

We recently changed the uppercase licensing text to lower case. The
reference test that checks the contents of the about dialog has to be
fixed to reflect that change.

11 years agoGdk: add an experimental backend for mir
Robert Ancell [Mon, 19 May 2014 22:03:30 +0000 (10:03 +1200)]
Gdk: add an experimental backend for mir

This is disabled by default.  Enable with --enable-mir-backend.

This backend is a combined work of Robert Ancell and Ryan Lortie.

11 years agoVisual Studio Builds: Fix broadwayd Build
Chun-wei Fan [Wed, 22 Oct 2014 11:40:48 +0000 (19:40 +0800)]
Visual Studio Builds: Fix broadwayd Build

There is now a broadway-buffer.c source that needs to be built for this, so
add it into the projects.  Since crypt() is no longer used, don't include
crypt.c in the builds, and so clean up the projects a bit.

11 years agoDrop a reference to gtkthemingengineprivate.h
Matthias Clasen [Wed, 22 Oct 2014 05:18:54 +0000 (01:18 -0400)]
Drop a reference to gtkthemingengineprivate.h

That file does not exist.

11 years ago3.15.0
Matthias Clasen [Wed, 22 Oct 2014 03:05:17 +0000 (23:05 -0400)]
3.15.0

11 years agoAdd GtkSidebar to the widget gallery
Matthias Clasen [Wed, 22 Oct 2014 05:11:34 +0000 (01:11 -0400)]
Add GtkSidebar to the widget gallery

11 years agoAdd GtkGLArea to the widget gallery
Matthias Clasen [Wed, 22 Oct 2014 04:55:39 +0000 (00:55 -0400)]
Add GtkGLArea to the widget gallery

11 years agoGtkSidebar: Make docs show up
Matthias Clasen [Wed, 22 Oct 2014 04:45:22 +0000 (00:45 -0400)]
GtkSidebar: Make docs show up

11 years agoDocument gtk_sidebar_get_stack
Matthias Clasen [Wed, 22 Oct 2014 04:36:16 +0000 (00:36 -0400)]
Document gtk_sidebar_get_stack

11 years agoDocument gtk_printer_option_set_get_groups
Matthias Clasen [Wed, 22 Oct 2014 04:34:41 +0000 (00:34 -0400)]
Document gtk_printer_option_set_get_groups

11 years agoFix docs for gtk_settings_set_property_value
Matthias Clasen [Wed, 22 Oct 2014 04:10:49 +0000 (00:10 -0400)]
Fix docs for gtk_settings_set_property_value

11 years agoFix docs for gtk_css_provider_load_from_resource
Matthias Clasen [Wed, 22 Oct 2014 04:06:53 +0000 (00:06 -0400)]
Fix docs for gtk_css_provider_load_from_resource

11 years agoAdd all sidebar API to the docs
Matthias Clasen [Wed, 22 Oct 2014 04:05:09 +0000 (00:05 -0400)]
Add all sidebar API to the docs

11 years agoAdd new papersize api to the docs
Matthias Clasen [Wed, 22 Oct 2014 04:03:52 +0000 (00:03 -0400)]
Add new papersize api to the docs

11 years agoAdd a 3.16 index
Matthias Clasen [Wed, 22 Oct 2014 03:56:17 +0000 (23:56 -0400)]
Add a 3.16 index

We have new GDK api already.

11 years agoSkip GdkX11GLContext in some object tests
Matthias Clasen [Wed, 22 Oct 2014 03:46:11 +0000 (23:46 -0400)]
Skip GdkX11GLContext in some object tests

Since it can't be constructed without specifying a GdkWindow,
which we don't have here.

11 years agoGL: Follow naming conventions
Matthias Clasen [Wed, 22 Oct 2014 03:39:05 +0000 (23:39 -0400)]
GL: Follow naming conventions

All the GDK type defines are GDK_TYPE_..., so follow this
pattern for the GLContext subclasses as well.

11 years agocssnodedeclaration: Fix src/dest swap in memmove()
Benjamin Otte [Wed, 22 Oct 2014 01:38:20 +0000 (03:38 +0200)]
cssnodedeclaration: Fix src/dest swap in memmove()

The main cause here were the wrong style classes being removed, such as
"message-dialog" instead of "csd" for GtkMessageDialog.

11 years agoAdwaita: use -gtk-icon-source: none on paned...
Lapo Calamandrei [Tue, 21 Oct 2014 18:35:02 +0000 (20:35 +0200)]
Adwaita: use -gtk-icon-source: none on paned...

...to get rid of the handle decoration istead of setting a transparent
background and abuse a background image for the background color.

11 years agomodelbutton: Fix up for style context changes
Benjamin Otte [Tue, 21 Oct 2014 18:30:20 +0000 (20:30 +0200)]
modelbutton: Fix up for style context changes

- Don't do work anymore that's done in GtkButton
- Don't do a save/restore just to set the state, instead set the state
  in the right places.

11 years agoinspector: Add missing directory when scanning for themes
Benjamin Otte [Tue, 21 Oct 2014 18:30:07 +0000 (20:30 +0200)]
inspector: Add missing directory when scanning for themes

11 years agoAdwaita: colorswatch on selected elements style fix
Lapo Calamandrei [Tue, 21 Oct 2014 14:34:42 +0000 (16:34 +0200)]
Adwaita: colorswatch on selected elements style fix

11 years agoAdwaita: axes borders of notebooks inside frame
Lapo Calamandrei [Tue, 21 Oct 2014 13:36:22 +0000 (15:36 +0200)]
Adwaita: axes borders of notebooks inside frame

This is what the old adwaita did, not having a better solution for
removing double borders, better to have this back even if it can
be problematic in certain cases.

11 years agoAdwaita: properly fix places sidebar
Lapo Calamandrei [Tue, 21 Oct 2014 11:51:22 +0000 (13:51 +0200)]
Adwaita: properly fix places sidebar

Forgot to treat treeview background... Some code refactoring in
the process.

11 years agoUpdated Indonesian translation
Andika Triwidada [Tue, 21 Oct 2014 12:46:13 +0000 (12:46 +0000)]
Updated Indonesian translation

11 years agowayland: don't init if XDG_RUNTIME_DIR missing
Ryan Lortie [Mon, 20 Oct 2014 21:16:22 +0000 (17:16 -0400)]
wayland: don't init if XDG_RUNTIME_DIR missing

wayland doesn't strictly follow the XDG_RUNTIME_DIR spec by falling back
to another directory in case the runtime dir is not properly set.

When this variable is unset, wayland will log an error to us, which we
treat as fatal, aborting the entire program.

Skip ourselves all the trouble and don't try to bring up the wayland
backend when we know it will fail in this way.

https://bugzilla.gnome.org/show_bug.cgi?id=738873

11 years agogdkglcontext-x11: Fix pixmap creation
Adel Gadllah [Tue, 21 Oct 2014 11:58:28 +0000 (13:58 +0200)]
gdkglcontext-x11: Fix pixmap creation

Always use NPOT textures

https://bugzilla.gnome.org/show_bug.cgi?id=738670

11 years agox11 glcontext: Always use RGBA texture format, as we use alphas
Alexander Larsson [Tue, 21 Oct 2014 11:51:24 +0000 (13:51 +0200)]
x11 glcontext: Always use RGBA texture format, as we use alphas

11 years agoAdwaita: wide paned separator style
Lapo Calamandrei [Tue, 21 Oct 2014 11:25:17 +0000 (13:25 +0200)]
Adwaita: wide paned separator style

...paned separator decoration fixed in the process.

11 years agowayland: Don't try to create a subsurface again
Bastien Nocera [Wed, 17 Sep 2014 16:42:57 +0000 (18:42 +0200)]
wayland: Don't try to create a subsurface again

We already did that inside gdk_wayland_window_create_surface() that's
called 2 lines above.

https://bugzilla.gnome.org/show_bug.cgi?id=738912

11 years agogtkwidget: Fix typo in comment
Bastien Nocera [Tue, 14 Oct 2014 14:47:11 +0000 (16:47 +0200)]
gtkwidget: Fix typo in comment

11 years agocss: Add "-gtk-icon-source: builtin"
Benjamin Otte [Tue, 21 Oct 2014 03:52:05 +0000 (05:52 +0200)]
css: Add "-gtk-icon-source: builtin"

... and make it the default. This takes over the meaning from "none" for
this property in that it draws the fallback builtin image.
"none" now literally means no image will be drawn.

11 years agostylecontext: fix icon-source extents computation
Benjamin Otte [Tue, 21 Oct 2014 03:47:15 +0000 (05:47 +0200)]
stylecontext: fix icon-source extents computation

for the builtin image or invalid matrix case. We used to return invalid
memory in those cases. And that was not good.

11 years agorender: We use CHECKED now, not ACTIVE
Benjamin Otte [Tue, 21 Oct 2014 03:15:37 +0000 (05:15 +0200)]
render: We use CHECKED now, not ACTIVE

Update docs and custom rendering of checkmarks and radio buttons

11 years agoGtkScrolledWindow: Add documentation
Matthias Clasen [Tue, 21 Oct 2014 02:13:51 +0000 (22:13 -0400)]
GtkScrolledWindow: Add documentation

Document the new overlay scrolling APIs, and add some more
documentation for the other touch support: kinetic scrolling
and overshoot.

11 years agoPort the overlayscroll example
Matthias Clasen [Thu, 9 Oct 2014 21:03:52 +0000 (17:03 -0400)]
Port the overlayscroll example

Make the overlayscroll example use the overlay scrolling that is
now built into GtkScrolledWindow, instead of the manual prototype.

11 years agoAdd some overlay scrollbar theming to Adwaita
Matthias Clasen [Thu, 9 Oct 2014 03:37:29 +0000 (23:37 -0400)]
Add some overlay scrollbar theming to Adwaita

11 years agoGtkScrolledWindow: Add overlay scrollbars
Matthias Clasen [Thu, 9 Oct 2014 03:34:32 +0000 (23:34 -0400)]
GtkScrolledWindow: Add overlay scrollbars

This commit adds a mode to GtkScrolledWindow in which it puts
narrow, auto-hiding scrollbars over the content, instead of
allocating room for the scrollbars outside of the content. We
use traditional scrollbars if we find a mouse or if overlay
scrolling has explicitly turned off.

For test purposes, GTK_TEST_TOUCHSCREEN can be used to get
overlay scrolling even in the presence of a mouse. The
environment variable GTK_OVERLAY_SCROLLING can also be used
to force overlay scrolling on or off.

11 years agoAdd an experiment for overlay scrollbars
Matthias Clasen [Sun, 5 Oct 2014 03:37:11 +0000 (23:37 -0400)]
Add an experiment for overlay scrollbars

This is just meant as a prototype for how we can show a
scroll position indicator for touch. This uses GTK_POLICY_EXTERNAL
to hide the scrolled windows scrollbar while still allowing
scrolling.

11 years agoGtkRange: Add a style class during dragging
Matthias Clasen [Sun, 5 Oct 2014 21:29:32 +0000 (17:29 -0400)]
GtkRange: Add a style class during dragging

This will be used to identify a scrollbar is being dragged - we
don't actually need the style class; another way to keep track
of the dragging status would be ok too.

11 years agostylecontext: Handle querying the wrong state better
Benjamin Otte [Tue, 21 Oct 2014 00:06:46 +0000 (02:06 +0200)]
stylecontext: Handle querying the wrong state better

When a getter function (like get_color()) is called and the passed in
state doesn't match the current state returned via get_state(), we used
to do a trick: We called save()/set_state() on the context before
getting the values.

Unfortunately, since 3a337156d11a86c7a88f1f30a09276fdf6f63008 this
has the unfortunate side effect that it also creates a child element.
This breaks various old codebases (spinbutton has been fixed in
998feeb2bc3e37275cfe915e128179d2704ca9c8, Webkit is fixed in
https://bugs.webkit.org/show_bug.cgi?id=137803 ) unfortunately.

So instead, look up the values manually ensuring that no child element
is created but the correct state is used.

11 years agostylecontext: Return a ref in lookup_values_for_state
Benjamin Otte [Mon, 29 Sep 2014 01:15:44 +0000 (03:15 +0200)]
stylecontext: Return a ref in lookup_values_for_state

This will be necessary when we stop caching values for lookups with the
"wrong" state.

11 years agocomputedvalues: Add to_string() and print() functions
Benjamin Otte [Tue, 21 Oct 2014 00:29:03 +0000 (02:29 +0200)]
computedvalues: Add to_string() and print() functions

The functions are unused. But they are very convenient to use from a
debugger, if you know what I mean...

11 years agostylecontext: Don't copy CSS values on context_save()
Benjamin Otte [Sun, 19 Oct 2014 19:04:48 +0000 (21:04 +0200)]
stylecontext: Don't copy CSS values on context_save()

Keeping them is a bad idea now where the widget paths are actually
changed by a save(). And almost all of the time, state or style classes
will be changed anyway.

Looking them up again is just a hash table lookup anyway.

11 years agostylecontext: Use node declaration in hash
Benjamin Otte [Sat, 18 Oct 2014 04:06:28 +0000 (06:06 +0200)]
stylecontext: Use node declaration in hash

Don't use the StyleInfo anymore.

11 years agostylecontext: Split out functionality into custom object
Benjamin Otte [Sat, 18 Oct 2014 03:45:21 +0000 (05:45 +0200)]
stylecontext: Split out functionality into custom object

GtkCssNodeDeclaration is a new struct with copy-on-write semantics.

It encapsulated the properties used to define a node in the CSS tree.

The idea is to use it in various places for caching, in particular as
key in hash tables.

11 years agowidget-factory: Example for edge-overshot
Matthias Clasen [Tue, 21 Oct 2014 00:54:31 +0000 (20:54 -0400)]
widget-factory: Example for edge-overshot

For extra fun, make some noise.

11 years agowidget-factory: Add a wide-handle example
Matthias Clasen [Mon, 20 Oct 2014 22:44:56 +0000 (18:44 -0400)]
widget-factory: Add a wide-handle example

11 years agoUpdated Indonesian translation
Andika Triwidada [Mon, 20 Oct 2014 18:44:26 +0000 (18:44 +0000)]
Updated Indonesian translation

11 years agoscrolledwindow: Add ::edge-overshot signal
Carlos Garnacho [Sun, 12 Oct 2014 12:29:24 +0000 (14:29 +0200)]
scrolledwindow: Add ::edge-overshot signal

This signal is emitted whenever user scrolling hits the overshoot
edge in the given direction. May be useful to add "reload" or "load
more" behaviors in apps.

https://bugzilla.gnome.org/show_bug.cgi?id=738534

11 years agoAdwaita: GtkPlacesSidebar treeview text color fix
Lapo Calamandrei [Mon, 20 Oct 2014 13:22:42 +0000 (15:22 +0200)]
Adwaita: GtkPlacesSidebar treeview text color fix

With my latest changes we have a darker text color for views and
entries (which I assume are content), the places sidebar is totally
chrome though so it needs the chrome text color back.

11 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 20 Oct 2014 13:08:33 +0000 (15:08 +0200)]
Updated Spanish translation

11 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 20 Oct 2014 13:01:35 +0000 (15:01 +0200)]
Updated Spanish translation

11 years agoGtkPaned: Add a "wide-handle" property
Matthias Clasen [Mon, 20 Oct 2014 11:32:42 +0000 (07:32 -0400)]
GtkPaned: Add a "wide-handle" property

This can be used by applications to indicate that a paned is expected
to be actively used by the users for configuring the UI, and needs
a prominent handle.

https://bugzilla.gnome.org/show_bug.cgi?id=738860

11 years agoAdd GtkGLArea fully to docs
Matthias Clasen [Mon, 20 Oct 2014 03:30:49 +0000 (23:30 -0400)]
Add GtkGLArea fully to docs

It was missing from the type list.

11 years agoImprove tooltip-text/markup docs
Matthias Clasen [Mon, 20 Oct 2014 03:28:34 +0000 (23:28 -0400)]
Improve tooltip-text/markup docs

Clarify priorities between the two,
https://bugzilla.gnome.org/show_bug.cgi?id=681185

11 years agoGtkAboutDialog: Don't shout
Matthias Clasen [Mon, 20 Oct 2014 03:16:06 +0000 (23:16 -0400)]
GtkAboutDialog: Don't shout

Don't use all-caps in the UI - it looks scary.

https://bugzilla.gnome.org/show_bug.cgi?id=671138

11 years agoGtkTooltip: Move nonexported API to a private header
Matthias Clasen [Mon, 20 Oct 2014 02:51:21 +0000 (22:51 -0400)]
GtkTooltip: Move nonexported API to a private header

This is our standard practice nowadays.

11 years agoGtkToggleButton: Move nonexported API to a private header
Matthias Clasen [Mon, 20 Oct 2014 02:42:49 +0000 (22:42 -0400)]
GtkToggleButton: Move nonexported API to a private header

This is our standard practice nowadays.

11 years agoDeprecate gtk_settings_install_property APIs
Matthias Clasen [Mon, 20 Oct 2014 02:33:24 +0000 (22:33 -0400)]
Deprecate gtk_settings_install_property APIs

These are not useful outside GTK+.

11 years agoGtkSpinButton: Simplify code
Matthias Clasen [Mon, 20 Oct 2014 02:07:19 +0000 (22:07 -0400)]
GtkSpinButton: Simplify code

No need to explicitly specify a parser function, it will be
correctly guessed from the property type.

11 years agoGtkMenuItem: Simplify code
Matthias Clasen [Mon, 20 Oct 2014 02:06:37 +0000 (22:06 -0400)]
GtkMenuItem: Simplify code

No need to explicitly specify a parser function, it will be
correctly guessed from the property type.

11 years agoDeprecate some GtkSettings api
Matthias Clasen [Mon, 20 Oct 2014 01:22:02 +0000 (21:22 -0400)]
Deprecate some GtkSettings api

The gtk_settings_set_...property functions don't really add
anything over g_object_set(), and we never documented them.

11 years agoClarify GtkSettings documentation
Matthias Clasen [Mon, 20 Oct 2014 00:47:05 +0000 (20:47 -0400)]
Clarify GtkSettings documentation

Just recommend g_object_set to override settings. The
gtk_settings_set_..._property functions don't really add
any value.

11 years agotestfilechooser: Test the preview again
Matthias Clasen [Mon, 20 Oct 2014 00:03:58 +0000 (20:03 -0400)]
testfilechooser: Test the preview again

There is code in there to show a preview, use it.

11 years agoForgotten file
Matthias Clasen [Mon, 20 Oct 2014 00:03:42 +0000 (20:03 -0400)]
Forgotten file

11 years agoGtkFileChooser: Make preview update more understandable
Matthias Clasen [Sun, 19 Oct 2014 21:54:28 +0000 (17:54 -0400)]
GtkFileChooser: Make preview update more understandable

Implement Federico's suggestion:
In single-selection mode, just use the selected row,
In multi-selection mode, use the cursor row as long as it is
in the selection.

https://bugzilla.gnome.org/show_bug.cgi?id=154709

11 years agoAdd a a drop-in test for the GtkBuilder parser
Matthias Clasen [Sun, 19 Oct 2014 02:12:54 +0000 (22:12 -0400)]
Add a a drop-in test for the GtkBuilder parser

11 years agoUpdated Polish translation
Piotr Drąg [Sat, 18 Oct 2014 21:45:21 +0000 (23:45 +0200)]
Updated Polish translation

11 years agoaboutdialog: Mark strings as translatable
Thomas Lange [Sat, 18 Oct 2014 20:53:03 +0000 (22:53 +0200)]
aboutdialog: Mark strings as translatable

https://bugzilla.gnome.org/show_bug.cgi?id=730893

11 years agodocs: add missing symbol in GtkTextView
Sébastien Wilmet [Sat, 18 Oct 2014 16:51:56 +0000 (18:51 +0200)]
docs: add missing symbol in GtkTextView

11 years agodocs: documentation for GtkTextBufferClass
Sébastien Wilmet [Sat, 18 Oct 2014 12:47:10 +0000 (14:47 +0200)]
docs: documentation for GtkTextBufferClass

It'll most probably be more useful in the near future.

11 years agoFix the build
Matthias Clasen [Sat, 18 Oct 2014 17:19:21 +0000 (13:19 -0400)]
Fix the build

11 years agoFix a few typos
Matthias Clasen [Sat, 18 Oct 2014 16:53:30 +0000 (12:53 -0400)]
Fix a few typos

11 years agoGtkWindow: Add a getter for the custom titlebar
Matthias Clasen [Sat, 18 Oct 2014 16:42:29 +0000 (12:42 -0400)]
GtkWindow: Add a getter for the custom titlebar

This is needed for the glade integration of CSD windows.

11 years agoWork around a pkg-config bug
Matthias Clasen [Sat, 18 Oct 2014 16:40:18 +0000 (12:40 -0400)]
Work around a pkg-config bug

It doesn't report -I${prefix}/include in cflags, even if .pc
files explicitly put it there. This was breaking the build
outside of a jhbuild shell when libepoxy is in the jhbuild tree
but not in /usr.

11 years agoSome documentation updates
Matthias Clasen [Sat, 18 Oct 2014 16:28:42 +0000 (12:28 -0400)]
Some documentation updates

Mention libepoxy in various places as a new dependency, and also
mention Wayland in the build documentation.

11 years agoAdwaita: darken a tiny bit more bright variant background color
Lapo Calamandrei [Sat, 18 Oct 2014 16:02:20 +0000 (18:02 +0200)]
Adwaita: darken a tiny bit more bright variant background color

11 years agoAdwaita: add back text color.
Lapo Calamandrei [Sat, 18 Oct 2014 14:57:39 +0000 (16:57 +0200)]
Adwaita: add back text color.

See https://bugzilla.gnome.org/show_bug.cgi?id=726316 for details.

11 years agoAdwaita: comment exported colors
Lapo Calamandrei [Sat, 18 Oct 2014 14:29:19 +0000 (16:29 +0200)]
Adwaita: comment exported colors

11 years agoUpdated Kazakh translation
Baurzhan Muftakhidinov [Sat, 18 Oct 2014 00:36:19 +0000 (00:36 +0000)]
Updated Kazakh translation

11 years agogtkgesturesingle: Unset button/sequence if parent handle_event failed
Carlos Garnacho [Fri, 17 Oct 2014 19:12:44 +0000 (21:12 +0200)]
gtkgesturesingle: Unset button/sequence if parent handle_event failed

There are legit reasons for GtkGesture::handle_event to return FALSE,
GtkGestureSingle objects should be unsetting the current button/sequence
if that happens, in order to avoid inconsistent states.

https://bugzilla.gnome.org/show_bug.cgi?id=738591

11 years agoAdwaita: darkened a tiny bit bright variant background
Lapo Calamandrei [Fri, 17 Oct 2014 18:36:25 +0000 (20:36 +0200)]
Adwaita: darkened a tiny bit bright variant background

Trying to differentiate a bit more the focused window from the
backdrop ones.

11 years agoAdwaita: use $backdrop_fg_color where it should
Lapo Calamandrei [Fri, 17 Oct 2014 18:09:17 +0000 (20:09 +0200)]
Adwaita: use $backdrop_fg_color where it should

.background:backdrop was not using that one so some labels didn't
look right in backdrop.

11 years agoAdwaita: dimmed backdrop foreground color
Lapo Calamandrei [Fri, 17 Oct 2014 18:03:17 +0000 (20:03 +0200)]
Adwaita: dimmed backdrop foreground color

To make focused window more evident.

11 years agoGtkWindow: Avoid an early exit
Matthias Clasen [Fri, 17 Oct 2014 17:59:39 +0000 (13:59 -0400)]
GtkWindow: Avoid an early exit

When gtk_window_set_titlebar (win, NULL) is called, we were taking
an early exit and forgot to re-map the window. This does not normally
happen in practice, but glade is about to get a 'csd' switch which
lets one toggle back and forth between titlebar and no titlebar.

11 years agoGtkEntry: plug a small memleak
Matthias Clasen [Fri, 17 Oct 2014 01:48:11 +0000 (21:48 -0400)]
GtkEntry: plug a small memleak

GtkEntry was leaking a pango attribute list, if one was set.

11 years agoAdwaita: fix stack-switcher button outline offset
Lapo Calamandrei [Thu, 16 Oct 2014 18:04:04 +0000 (20:04 +0200)]
Adwaita: fix stack-switcher button outline offset

See https://bugzilla.gnome.org/show_bug.cgi?id=738636

11 years agospinbutton: Set the correct state on the button contexts
Benjamin Otte [Thu, 16 Oct 2014 15:00:20 +0000 (17:00 +0200)]
spinbutton: Set the correct state on the button contexts

With the recent save-is-child changes, using
  gtk_style_context_get_padding (context, different_state)
will now open a subelement.

This is not what we want, so we check the state whenever we get the
button contexts.

11 years agoGet media-col-default attribute correctly
Marek Kasik [Thu, 16 Oct 2014 12:55:30 +0000 (14:55 +0200)]
Get media-col-default attribute correctly

Fix a typo which caused that "number-up-supported" and "media-col-default"
IPP attributes were not requested correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=725441

11 years agoAdwaita: ease-out-quad in place of ease-out
Lapo Calamandrei [Thu, 16 Oct 2014 12:36:23 +0000 (14:36 +0200)]
Adwaita: ease-out-quad in place of ease-out

Generally changed the transition timing function to ease-out-quad
which is described by cubic-bezier(0.25, 0.46, 0.45, 0.94), feels
better to me.

11 years agoAdwaita: list row hover color
Lapo Calamandrei [Thu, 16 Oct 2014 12:22:20 +0000 (14:22 +0200)]
Adwaita: list row hover color

Now it's based of fg color, so the list row gets darker on the
bright variant and brighter on the dark variant, similarly to what
we do for spinbutton buttons.

11 years agoAdwaita: tweak list row transition
Lapo Calamandrei [Thu, 16 Oct 2014 12:12:13 +0000 (14:12 +0200)]
Adwaita: tweak list row transition

Thanks to Carlos Soriano expertise.

11 years agoX11: Fix crash in gdk_x11_gl_context_texture_from_surface
Alexander Larsson [Thu, 16 Oct 2014 10:58:43 +0000 (12:58 +0200)]
X11: Fix crash in gdk_x11_gl_context_texture_from_surface

We need to look at the impl_window for the gl rendering, not
the subwindow we're rendering into.

11 years agoAdwaita: avoid border clash on transitioning adiacent flat buttons
Lapo Calamandrei [Thu, 16 Oct 2014 10:46:58 +0000 (12:46 +0200)]
Adwaita: avoid border clash on transitioning adiacent flat buttons

Flat buttons gets the button decoration on hover, while transitioning
the decorations of adiacent flat buttons are both shown (one fading in
and the other fading out) so the borders clashes, since normally there's
no spacing between them, to avoid it the transition on the normal state
is set to none and added back to the hover state, so the decoration
won't fade out. To make the transition more evident the duration is
increased.

11 years agowidget-factory: Add a missing scrolled window
Matthias Clasen [Thu, 16 Oct 2014 01:53:53 +0000 (21:53 -0400)]
widget-factory: Add a missing scrolled window

11 years agowidget-factory: Add some vertical examples
Matthias Clasen [Thu, 16 Oct 2014 01:42:12 +0000 (21:42 -0400)]
widget-factory: Add some vertical examples

This adds both a vertical toolbar and vertically linked buttons.

11 years agoglarea: Display the error message when an error occurred
Benjamin Otte [Thu, 16 Oct 2014 01:31:30 +0000 (03:31 +0200)]
glarea: Display the error message when an error occurred

Simply center a PangoLayout with the message text.

11 years agogdk: Add GDK_DEBUG=nogl
Benjamin Otte [Thu, 16 Oct 2014 01:13:45 +0000 (03:13 +0200)]
gdk: Add GDK_DEBUG=nogl

This is mostly useful for fallback testing.

I suppose if people want finer grained GL ability testing, they can use
Mesa environment variables to tune things.